unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls,ComServ,ComObj;

type
  TForm1 = class(TForm)
    Btnx_1: TButton;
    procedure Btnx_1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Btnx_1Click(Sender: TObject);
var
  V:OleVariant;
begin
  V:=GetActiveOleObject('Project1.kazarusdemo');
  V.Method1('xx');
end;

end.
